package com.cq.hd.member.api.vo;



import com.cq.hd.common.serialize.Decimal2Serializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class BusinessAgentCommissionPageVo implements Serializable {

    @ApiModelProperty(value = "经纪人用户id")
    private Long userId;

    @ApiModelProperty(value = "经纪人昵称")
    private String nickName;

    @ApiModelProperty(value = "经纪人头像")
    private String avatar;


    @ApiModelProperty(value = "专属佣金比例")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal commissionRate;

    @ApiModelProperty(value = "分组id")
    private Long groupId;

    @ApiModelProperty(value = "分组名称")
    private String groupName;


    @ApiModelProperty(value = "累计分销订单金额")
    @JsonSerialize(using = Decimal2Serializer.class)
    private BigDecimal totalOrderAmt;

    @ApiModelProperty(value = "累计分销订单数")
    private Integer totalOrderCount;

    @ApiModelProperty(value = "加入时间")
    private LocalDateTime createTime;
}
